@import url("https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;600;700;800&display=swap");
html {
    scroll-behavior: smooth;
}

.opportunities {
    /*###### CUSTOM VARIABLES ######*/
    --color-primary-tint: hsla(112, 99%, 92%);
    --color-primary-shade: hsl(112, 99%, 26%);
    --text-color: hsla(120, 6%, 14%, 1);
    --text-color-light: hsla(108, 10%, 10%, 0.8);

    --font-family: "DM Sans", sans-serif;

    --fs-heading-lg: 2.5rem;
    --fs-heading-md: 2.25rem;
    --fs-heading-sm: 1.25rem;
    --fs-text-md: 1rem;
    --fs-text-lg: 1.75rem;
    --fs-text-sm: 0.875rem;
    --fs-text-x-sm: 0.75rem;

    --line-height-text: 1.6;
    --btn-radius: 27px;
    --card-radius: 17px;
    --custom-box-shadow: 0rem 0.75rem 1rem 0rem rgba(0, 0, 0, 0.06);

    /* GlOBAL STYLINGS */
    font-family: var(--font-family);
}

/*###### GLOBAL RESETS ######*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.opportunities>* {
    font-family: inherit !important;
}

img {
    /* Making images responsive */
    display: block;
    width: 100%;
}

/*###### RE-USABLE CLASSES ######*/

.container-center {
    max-width: 1200px;
    width: 85%;
    margin-inline: auto;
}

.justify-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.heading-lg {
    font-size: var(--fs-heading-lg);
    font-weight: 600;
    margin-bottom: 1.75rem;
}

.heading-md {
    font-family: "Mulish";
    font-size: var(--fs-heading-md);
    font-weight: 600;
    margin-bottom: 5rem;
}

.heading-sm {
    font-family: "Mulish", var(--font-family), sans-serif;
    font-size: var(--fs-heading-sm);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.text-md {
    font-size: var(--fs-text-md);
    font-weight: 500;
    line-height: var(--line-height-text);
    margin-bottom: 2.5rem;
}

.text-sm {
    font-size: var(--fs-text-sm);
    font-weight: 400;
    margin-bottom: 1rem;
}

.text-x-sm {
    font-size: var(--fs-text-x-sm);
}

.btn {
    display: inline-block;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-primary-tint);
    background-color: var(--color-primary-shade);
    border: 0;
    border-radius: var(--btn-radius);
    cursor: pointer;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
}

.btn-md {
    padding: 0.75rem 1.00rem;
    font-size: var(--fs-text-sm);
}

/*##### RESOURCES AND EVENTS SECTION #####*/

.section-resources,
.section-events {
    padding-block: 5rem;
}

.section-resources h2,
.section-events h2 {
    text-align: center;
}

.cards {
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 50em) {
    .cards {
        grid-template-columns: 1fr;
        row-gap: 4.8rem;
    }
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-color);
    box-shadow: var(--custom-box-shadow);
    border-radius: var(--card-radius);
    overflow: hidden;
    height: 100%;
}

.card .content {
    padding: 1.25rem;
    flex-grow: 1; /* Ensures content takes up available space */
}

.card-description {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limits description to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-button {
    margin-top: auto; /* Ensures button stays at the bottom */
    text-align: center;
    align-self: flex-end;
}

/* Additional classes */

.card .tag {
    display: inline-block;
    color: #192666;
    font-size: var(--fs-text-x-sm);
    font-weight: 500;
    background-color: #c0c6e4;
    padding: 0.375rem 0.75rem;
    border-radius: var(--btn-radius);
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.heading-desc {
    font-size: var(--fs-text-md);
    color: var(--color-primary-shade);
    font-weight: 600;
    text-align: center;
    text-transform: capitalize;
}

/* Responsive adjustments */
@media (max-width: 678px) {
    .intro__content {
        grid-template-columns: repeat(1, 1fr);
        width: 100%;
        gap: 2rem;
    }
    .intro__content-img-box>img {
        width: 100%;
    }
    .cards {
        grid-template-columns: repeat(1, 1fr);
        padding: 0 1rem;
    }
    .heading-md {
        font-family: 'Mulish', var(--font-family), sans-serif;
        font-size: var(--fs-heading-md);
        font-weight: 600;
        margin-bottom: 3rem;
    }
}
